package com.youtui.manager.service.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.youtui.common.service.base.impl.BaseServiceImpl;
import com.youtui.manager.mapper.ExcelInputDataMapper;
import com.youtui.manager.model.ExcelInputData;
import com.youtui.manager.service.IExcelInputDataService;

@Service
public class ExcelInputDataServiceImpl extends BaseServiceImpl implements IExcelInputDataService {

	@Autowired
	ExcelInputDataMapper excelInputDataMapper;

	@Override
	public int insertExcelInputData(Long excId, String fileName,Date curdate ,  int totalNum, int successNum , int type) {
		ExcelInputData excelInputData = new ExcelInputData();
		excelInputData.setId(excId);
		excelInputData.setFileName(fileName);
		excelInputData.setDealTime(new Date());
		excelInputData.setTotalNum(totalNum);
		excelInputData.setSuccessNum(successNum);
		excelInputData.setType(type);
		excelInputData.setStatus(1);
		excelInputData.setCurdate(curdate);
		return excelInputDataMapper.insert(excelInputData);

	}

}
